package com.ygqh.baby.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ygqh.baby.ao.Message;
import com.ygqh.baby.ao.PromotionType;
import com.ygqh.baby.po.YgProduct;
import com.ygqh.baby.service.AbstractService;
import com.ygqh.baby.service.ProductService;
import com.ygqh.baby.service.YgProductService;
@Service
public class ProductServiceImpl extends AbstractService implements ProductService {
	@Autowired
	private YgProductService ygProductService;

	@Override
	public Message getProduct(String[] skuCodes) {
		List<YgProduct> pList = ygProductService.findBySkuCodes(PromotionType.Ordinary, skuCodes);
		return Message.success(pList);
	}
}
